package com.action.worksheet;
import java.util.*;



import com.db.user.*;

import com.db.worksheet.*;
import com.opensymphony.xwork2.ActionContext;

public class ListAction_day {
	private int depttype;
	private List<WorkSheetVO> list=new ArrayList<WorkSheetVO>();
	private WorkSheetVO vo=new WorkSheetVO();
	private int sabun;
	private WorkSheetDAO sheetDAO;

	
	public void setSheetDAO(WorkSheetDAO sheetDAO) {
		this.sheetDAO = sheetDAO;
	}

	
	public void setSabun(int sabun) {
		this.sabun = sabun;
	}

	public void setVo(WorkSheetVO vo) {
		this.vo = vo;
	}

	public int getSabun() {
		return sabun;
	}

	public List<WorkSheetVO> getList() {
		return list;
	}

	public void setDepttype(int depttype) {
		this.depttype = depttype;
	}	
	

	public String man() throws Exception{
		
		System.out.println("일일 업무일지 (개인)입니다.");
		list=sheetDAO.sheetTodayData_man(sabun);
			
		return "success";
	}
	public String team() throws Exception{
		System.out.println(depttype);
		list=sheetDAO.sheetTodayData_team(depttype);
		System.out.println("일일 업무일지 (부서)입니다.");
		return "success";
	}
}
